#include "Basicclass.h"
void Player::PlayerInit(string name)
{
	this->name = name;
	itemnum = monsternum = -1;
	for (int i = 0; i < 2; i++) {
		have_item[i] = false;
	}
	for (int i = 0; i < 4; i++)
		this->use_monster[i] = nullptr;
}
//增加初始化宝可梦，道具改为bool形态
void Player::getpokmon(Monster* mymonster) {
	this->use_monster[++monsternum] = mymonster;
}
void Player::getitem() {
	if (itemnum < 1) {
		have_item[++itemnum] = true;
	}
}